using Pay.Core;

namespace Pay
{
	/// <summary>
	/// Program
	/// </summary>
	public class Program
	{
		/// <summary>
		/// Main
		/// </summary>
		public static void Main(string[] args)
		{
			var options = new WebApplicationOptions { Args = args, ContentRootPath = AppContext.BaseDirectory, WebRootPath = "/wwwroot" };
			var builder = WebApplication.CreateBuilder(options);
			builder.Host.ConfigureAppConfiguration((hostBuilder, configBuilder) =>
			{
				configBuilder.SetBasePath(AppContext.BaseDirectory);
			});
			builder.Services.AddServiceCore();

			var app = builder.Build();
			app.UseMiddlewareCore();

			app.Run();
		}
	}
}